package com.cn.jsdr.controller;

import com.cn.jsdr.service.LogicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("logic")
public class LogicController {
    @Autowired
    private LogicService logicService;
    @PostMapping("test")
    @ResponseBody
    public Map extLogic( @RequestBody Map map){
        ArrayList<String> ids = (ArrayList<String>) map.get("ids");
        return logicService.expLogic(ids,map);
    }
}
